import request from '@/utils/request'

// 查询设备上下线状态列表
export function listProjectPilingDeviceStatus(query) {
  return request({
    url: '/pile/projectPilingDeviceStatus/list',
    method: 'get',
    params: query
  })
}

// 查询设备上下线状态所有列表
export function listAllProjectPilingDeviceStatus(query) {
  return request({
    url: '/pile/projectPilingDeviceStatus/listAll',
    method: 'get',
    params: query
  })
}

// 查询设备上下线状态详细
export function getProjectPilingDeviceStatus(id) {
  return request({
    url: '/pile/projectPilingDeviceStatus/getInfo/' + id,
    method: 'get'
  })
}

// 新增设备上下线状态
export function addProjectPilingDeviceStatus(data) {
  return request({
    url: '/pile/projectPilingDeviceStatus/add',
    method: 'post',
    data: data
  })
}

// 修改设备上下线状态
export function updateProjectPilingDeviceStatus(data) {
  return request({
    url: '/pile/projectPilingDeviceStatus/edit',
    method: 'post',
    data: data
  })
}

// 删除设备上下线状态
export function delProjectPilingDeviceStatus(id) {
  return request({
    url: '/pile/projectPilingDeviceStatus/remove/' + id,
    method: 'get'
  })
}
